﻿using System.Collections.Generic;
using System.Configuration;

namespace Common
{
    public class CommonConst
    {
        #region 腾讯相关常量

        /// <summary>
        /// 财付通退款接口地址
        /// </summary>
        public static readonly string CFTCommonAddr = XmlReader.GetConfigValue("CFTCommonAddr");

        /// <summary>
        /// 财付通接口地址账号
        /// </summary>
        public const string CFTCommonAccount = "590F92C4-495E-4013-9B67-9D3D00E82DD3";

        /// <summary>
        /// 财付通接口服务名称
        /// </summary>
        public const string CFTRefundPlat = "refund_normal";

        /// <summary>
        /// 财付通模拟付款接口服务名称
        /// </summary>
        public const string CFTPaySERVICE = "pay_outline";

        /// <summary>
        /// 财付通支付验证接口
        /// </summary>
        public const string CFTPayValidateService = "query_normal";

        /// <summary>
        /// 同程财付通收款账号
        /// </summary>
        public const string TCCFTACT = "1209688201";

        #endregion 腾讯相关常量

        #region 今日相关常量

        /// <summary>
        /// 今日接口主账户
        /// </summary>
        public static readonly string JinRi_Head_Account = "lxx831105";

        /// <summary>
        /// 今日接口子账户
        /// </summary>
        public static readonly string JinRi_Sub_Account = "lxx831105168";

        /// <summary>
        /// 今日的同行ID
        /// </summary>
        public static readonly int JinRi_B2CUserId = 3101276;

        /// <summary>
        /// 第三方订单支付
        /// </summary>
        public static readonly string Third_Order_Payment = "第三方订单支付";

        /// <summary>
        /// 今日密钥
        /// </summary>
        public static readonly string JinRi_Key = "xzwez31nwdzuu6ocikdifwmxncwdghx6";

        #endregion 今日相关常量

        #region 51Book相关

        /// <summary>
        /// 51Book分配的代理号 AgencyCode:51book给出
        /// </summary>
        public const string LianTuo51BookAgencyCode = "tcjpw";

        /// <summary>
        /// 51Book分配的安全码
        /// </summary>
        public const string LianTuo51BookValidateCode = "Yen(aG@m";

        /// <summary>
        /// 联拓51Book的同行ID
        /// </summary>
        public const int LianTuo_B2CUserId = 3834665;      //从http://3834665.17ujp.com/得到的id

        #endregion 51Book相关

        #region 8000yi相关

        /// <summary>
        /// 8000yi的同行ID
        /// </summary>
        public const int BaQianYi_B2CUserId = 4153923;

        /// <summary>
        /// 8000yi给同程开辟的调用接口的用户名
        /// </summary>
        public const string BaQianYi_ValidateUserName = "tcjp";

        /// <summary>
        /// 8000yi给同程开辟的调用接口的用户密码（跟BaQianYi_ValidateUserName匹配）
        /// </summary>
        public const string BaQianYi_ValidateUserPwd = "tcjp";

        /// <summary>
        /// 跟8000yi签订自动付款协议的支付账户
        /// </summary>
        public const string BaQianYi_PayAccount = "tcjp_05@17u.net";

        #endregion 8000yi相关

        #region 自出票相关

        /// <summary>
        /// 同程自出票ID
        /// </summary>
        public const int AutoTicketing_B2CUserId = 1427076;

        /// <summary>
        /// 同程自出票特权供应商ID
        /// </summary>
        public const int AutoTicketing_B2CUserId2 = 4205260;

        /// <summary>
        /// 淘宝代理ID
        /// </summary>
        public const int TAO_BAO_MERCHANTID = 1939427;

        #endregion 自出票相关

        #region 第三方平台公用

        public static Dictionary<int, string> ThirdMerchant
        {
            get
            {
                Dictionary<int, string> thirdMerchant = new Dictionary<int, string>();
                thirdMerchant.Add(3101276, "今日");
                thirdMerchant.Add(3834665, "51Book");
                thirdMerchant.Add(6728860, "百拓");
                return thirdMerchant;
            }
        }

        /// <summary>
        /// 捞取淘宝订单所需状态
        /// </summary>
        public static readonly string taobaoStuts = "1,2";

        /// <summary>
        /// 是否包含保险信息，这里记录不包含保险信息的渠道编号1-代表TTS，2代表淘宝，如要添加渠道请在后面添加
        /// </summary>
        public static readonly string IsInsurance = "1,2";

        #endregion 第三方平台公用

        #region API站点路径

        public static readonly string APIDomain = XmlReader.GetConfigValue("APIDomain");

        #endregion API站点路径

        #region 百拓的同行的供应商Id

        /// <summary>
        /// 百拓的同行Id
        /// </summary>
        public static readonly int BaiTuo_B2CUserId = 6728860;

        #endregion 百拓的同行的供应商Id

        #region zhxsrvDomain

        /// <summary>
        /// zhxsrvDomain
        /// </summary>
        public static readonly string zhxsrvDomain = ConfigurationManager.AppSettings["zhxsrvDomain"];

        #endregion zhxsrvDomain
    }
}